<template>
  <div>
    <yd-tabbar fixed active-color="#FF5E53">
        <yd-tabbar-item title="首页" :link="{ path: 'home', query: { 'company_code': company_code }}" :active="$route.name == 'home'">
            <yd-icon name="home" slot="icon" size="0.54rem"></yd-icon>
        </yd-tabbar-item>
        <yd-tabbar-item title="订单" :link="{ path: 'orderlist', query: { 'company_code': company_code }}" :active="$route.name == 'orderlist'">
            <yd-icon name="feedback" slot="icon" size="0.54rem"></yd-icon>
        </yd-tabbar-item>
        <yd-tabbar-item title="我的" :link="{ path: 'mine', query: { 'company_code': company_code }}" :active="$route.name == 'mine'">
            <yd-icon name="ucenter-outline" slot="icon" size="0.54rem" ></yd-icon>
        </yd-tabbar-item>
    </yd-tabbar>
    <router-view/>
  </div>
</template>

<script>

import { mapGetters } from 'vuex'

export default {
  name: 'Main',
  data () {
    return {

    }
  },

  computed : {
    ...mapGetters([
      //'userdata',
      'company_code',
    ]),
  },

  methods : {
   
  },
  
}
</script>

<style scoped>

</style>
